<template>
    
    <div style="width:400px">
        
        <dist-picker :addr="addr" @on-change="changeaddr"></dist-picker>
        <dist-picker :addr="addr2" :splitIcon="splitIcon" @on-change="changeaddr2"></dist-picker>
    </div>
</template>

<script>
import distPicker from "base/dist-picker/dist-picker";
export default {
  data() {
    return {
      addr: "河北-邯郸-复兴区",
      addr2:'上海/上海/宝山区',
      splitIcon:'/'
    };
  },
  methods:{
      changeaddr(newAddr){
          this.addr=newAddr
      },
      changeaddr2(newAddr){
          this.addr2=newAddr
      }
  },
  components: {
    distPicker
  }
};
</script>

<style scoped lang="stylus" rel="stylesheet/stylus">
@import '~common/stylus/variable';


</style>
